package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class RunfastCreditlevel implements Serializable {
    // 信用等级管理
    private Integer id;

    private BigDecimal commission;//每笔订单提成

    private Date createtime;//结束信誉分数

    private Integer endgrade;//当前信誉等级

    private Integer sort;//开始信誉分数

    private Integer startgrade;

    private BigDecimal addprice;//超出免费每公里加多少钱

    private BigDecimal commissionday;//白班每笔订单提成

    private BigDecimal commissionnight;//晚班每笔订单提成

    private Date endtimeday;//白班结束时间

    private Date endtimenight;//晚班结束时间

    private Date starttimeday;//白班开始时间

    private Date starttimenight;//晚班开始时间

    private Integer agentid;//代理商Id：

    private String agentname;//代理商

    private Double distan;//超出多少公里后额外加钱

    private BigDecimal price;//额外每公里加多少钱

    private BigDecimal maxprice;//每单骑手所得最高配送金额

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastCreditlevel withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public BigDecimal getCommission() {
        return commission;
    }

    public RunfastCreditlevel withCommission(BigDecimal commission) {
        this.setCommission(commission);
        return this;
    }

    public void setCommission(BigDecimal commission) {
        this.commission = commission;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public RunfastCreditlevel withCreatetime(Date createtime) {
        this.setCreatetime(createtime);
        return this;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getEndgrade() {
        return endgrade;
    }

    public RunfastCreditlevel withEndgrade(Integer endgrade) {
        this.setEndgrade(endgrade);
        return this;
    }

    public void setEndgrade(Integer endgrade) {
        this.endgrade = endgrade;
    }

    public Integer getSort() {
        return sort;
    }

    public RunfastCreditlevel withSort(Integer sort) {
        this.setSort(sort);
        return this;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getStartgrade() {
        return startgrade;
    }

    public RunfastCreditlevel withStartgrade(Integer startgrade) {
        this.setStartgrade(startgrade);
        return this;
    }

    public void setStartgrade(Integer startgrade) {
        this.startgrade = startgrade;
    }

    public BigDecimal getAddprice() {
        return addprice;
    }

    public RunfastCreditlevel withAddprice(BigDecimal addprice) {
        this.setAddprice(addprice);
        return this;
    }

    public void setAddprice(BigDecimal addprice) {
        this.addprice = addprice;
    }

    public BigDecimal getCommissionday() {
        return commissionday;
    }

    public RunfastCreditlevel withCommissionday(BigDecimal commissionday) {
        this.setCommissionday(commissionday);
        return this;
    }

    public void setCommissionday(BigDecimal commissionday) {
        this.commissionday = commissionday;
    }

    public BigDecimal getCommissionnight() {
        return commissionnight;
    }

    public RunfastCreditlevel withCommissionnight(BigDecimal commissionnight) {
        this.setCommissionnight(commissionnight);
        return this;
    }

    public void setCommissionnight(BigDecimal commissionnight) {
        this.commissionnight = commissionnight;
    }

    public Date getEndtimeday() {
        return endtimeday;
    }

    public RunfastCreditlevel withEndtimeday(Date endtimeday) {
        this.setEndtimeday(endtimeday);
        return this;
    }

    public void setEndtimeday(Date endtimeday) {
        this.endtimeday = endtimeday;
    }

    public Date getEndtimenight() {
        return endtimenight;
    }

    public RunfastCreditlevel withEndtimenight(Date endtimenight) {
        this.setEndtimenight(endtimenight);
        return this;
    }

    public void setEndtimenight(Date endtimenight) {
        this.endtimenight = endtimenight;
    }

    public Date getStarttimeday() {
        return starttimeday;
    }

    public RunfastCreditlevel withStarttimeday(Date starttimeday) {
        this.setStarttimeday(starttimeday);
        return this;
    }

    public void setStarttimeday(Date starttimeday) {
        this.starttimeday = starttimeday;
    }

    public Date getStarttimenight() {
        return starttimenight;
    }

    public RunfastCreditlevel withStarttimenight(Date starttimenight) {
        this.setStarttimenight(starttimenight);
        return this;
    }

    public void setStarttimenight(Date starttimenight) {
        this.starttimenight = starttimenight;
    }

    public Integer getAgentid() {
        return agentid;
    }

    public RunfastCreditlevel withAgentid(Integer agentid) {
        this.setAgentid(agentid);
        return this;
    }

    public void setAgentid(Integer agentid) {
        this.agentid = agentid;
    }

    public String getAgentname() {
        return agentname;
    }

    public RunfastCreditlevel withAgentname(String agentname) {
        this.setAgentname(agentname);
        return this;
    }

    public void setAgentname(String agentname) {
        this.agentname = agentname == null ? null : agentname.trim();
    }

    public Double getDistan() {
        return distan;
    }

    public RunfastCreditlevel withDistan(Double distan) {
        this.setDistan(distan);
        return this;
    }

    public void setDistan(Double distan) {
        this.distan = distan;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public RunfastCreditlevel withPrice(BigDecimal price) {
        this.setPrice(price);
        return this;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getMaxprice() {
        return maxprice;
    }

    public RunfastCreditlevel withMaxprice(BigDecimal maxprice) {
        this.setMaxprice(maxprice);
        return this;
    }

    public void setMaxprice(BigDecimal maxprice) {
        this.maxprice = maxprice;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", commission=").append(commission);
        sb.append(", createtime=").append(createtime);
        sb.append(", endgrade=").append(endgrade);
        sb.append(", sort=").append(sort);
        sb.append(", startgrade=").append(startgrade);
        sb.append(", addprice=").append(addprice);
        sb.append(", commissionday=").append(commissionday);
        sb.append(", commissionnight=").append(commissionnight);
        sb.append(", endtimeday=").append(endtimeday);
        sb.append(", endtimenight=").append(endtimenight);
        sb.append(", starttimeday=").append(starttimeday);
        sb.append(", starttimenight=").append(starttimenight);
        sb.append(", agentid=").append(agentid);
        sb.append(", agentname=").append(agentname);
        sb.append(", distan=").append(distan);
        sb.append(", price=").append(price);
        sb.append(", maxprice=").append(maxprice);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}